import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsOptional, IsString, IsNumber } from 'class-validator';

export class UpdateVideoDto {
  @ApiProperty({ description: '视频标题', required: false })
  @IsOptional()
  @IsString()
  @IsNotEmpty()
  title?: string;

  @ApiProperty({ description: '视频描述', required: false })
  @IsOptional()
  @IsString()
  description?: string;

  @ApiProperty({ description: '视频分类ID', required: false })
  @IsOptional()
  categoryId?: number;
}
